<template>
  <div class="NavMenu">
    <el-row class="tac">
      <el-col :span="12">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          router
          @open="handleOpen"
          @close="handleClose">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>基础数据管理</span>
              </template>
            <el-menu-item-group>
                <el-menu-item index="/manage">
                  小区管理
                </el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
            </el-menu-item-group>
            </el-submenu>
            </el-menu>
            </el-col>
            </el-row>
  </div>
</template>

<script>
  export default {
    name:'navMenu',
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>


<style>
.el-col-12{
  width: 100% !important;
}
.NavMenu{
  .el-aside{
    text-align: none !important;
  }
}
</style>